class Point{
public:
	float x;
	float y;
	Point():x(0), y(0){ }
	Point(float a, float b) : x(a), y(b){ }
	Point(const Point& point){
		x = point.x;
		y = point.y;
	}
};

class Circle{
protected:
	Point O;
	float radius;
public:
	Circle(Point O, float r);
	Circle(float r);
	float Calcval();
	void showCircle();

};

class Cylinder:public Circle{
protected:
	float length;
public:
	Cylinder(float, float);
	float Calcval();
	void showCylinder();
};

class Sphere : public Circle{
public:
	Sphere(float r);
	float Calcval();
	void showSphere();
};
